import request from '@/utils/request'

export default {
  /**
   * 上传头像
   * @param file 头像文件
    */
  uploadAvatar(file) {
    return request(
      {
        url:'oss/uploadAvater',
        method:'post',
        data:file,
        header:{
          "Content-Type":"multipart/form-data"
        }
      }
    )
  }
}
